<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container {
            display: flex;
            height: 100px;
        }
        /* flex-grow:1 flex-shrink:1 flex-basis:auto */
        .item {
            flex: auto;
            border: 1px solid red;
        }
    </style>
</head>

<body>
    <!-- https://juejin.cn/post/6971010647492395044 -->
    <div class="container">
        <div class="item">测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试</div>
        <div class="item">测试测试测试测试测试</div>
        <div class="item">测试测试测试测试测试</div>
    </div>


</body>

</html>